import { createApp } from "vue";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import { createPinia } from "pinia";
import VConsole from "vconsole";
import { isPC } from "./utils/zxcxWebkit";
import Carousel3d from "vue3-carousel-3d";

import "vue3-carousel-3d/dist/index.css";
const app = createApp(App);

if (import.meta.env.VITE_MODE == "development" && !isPC()) {
  const v = new VConsole({
    defaultPlugins: ["system", "network", "element", "storage"], // 启用核心功能模块
  });
  app.use(v);
}

app.use(router).use(createPinia());
app.use(Carousel3d);

app.mount("#app");
